﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MyWCF.Demo.Contracts.Calculator;
using System.ServiceModel;

namespace MyWCF.Demo.Services.Calculator
{
    //[ServiceBehavior(AddressFilterMode = AddressFilterMode.Any)]
    public class CalculatorService : ICalculator
    {
        #region ICalculator 成员

        public double Add(int x, int y)
        {
            return x + y;
        }

        public double Subtract(int x, int y)
        {
            return x - y;
        }

        #endregion
    }
}
